package com.mobvel.zxstdzgl.ui;

import java.util.List;
import java.util.Map;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

public class ClientAdpater extends BaseAdapter {
	protected Context context;
	protected LayoutInflater inflater;
	protected List<Map<String,String>> data;

	public ClientAdpater(Context context) {
		this.context = context;
		inflater = LayoutInflater.from(context);
	}

	/** 设置ListView data */
	public void setData(List<Map<String,String>> data) {
		this.data = data;
	}
	
	public int getCount() {
		// TODO Auto-generated method stub
		return data == null ? 0 : data.size();

	}
	/**
	 * getData:(设置adapter咨询)
	 */
	public List<Map<String,String>> getData(){
		return data;
	}
	/**
	 * addData:(添加分页数据)
	 */
	public void addData(List<Map<String,String>> data) {
		this.data.addAll(data);
		notifyDataSetChanged();
	}

	public Object getItem(int position) {
		return null;

	}

	public long getItemId(int position) {
		return position;

	}

	public View getView(int position, View convertView, ViewGroup parent) {
		return null;
	}
}
